//开始配置路由
import { createRouter ,createWebHashHistory} from "vue-router";
import Demo1View from "../Views/Demo1View.vue";
import Demo2View from "../Views/Demo2View.vue";
import Login from "../Views/Login.vue";


let router = createRouter({
  //指定路由模式 history / 哈希
  history:createWebHashHistory(),//配置路由模式

  //路由规则 一级路由
  routes:[
    {path:'/d1',component:Demo1View},
    {path:'/d2',component:Demo2View},
    {path:'/lg',component:Login}
  ]
})

export default router;